package com.grade.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.grade.domain.Course;
import com.grade.domain.CourseDto;
import com.grade.domain.Response;
import com.grade.domain.StudentGradeDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CourseDao extends BaseMapper<Course> {

    List<CourseDto> getCourseById(Integer id, String da);

    List<StudentGradeDto> getCourseGradeByTeacherId(Integer id);

    List<Course> getCourseByTeacherId(Integer id);

    List<StudentGradeDto> getCourseGradeByTeacherId2(Integer id, String courseName);

    Integer isExist(Course course);

    void updateCourseGrade(Integer a,Integer b);

    Integer isExistGrade(Integer a);
}
